* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 300px;
    height: 500px;
    border-radius: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    margin: 20px auto 0;
    position: relative;
}

.goods-title {
    text-align: center;
    margin: 10px 0;
}

.goods-list {
    padding: 20px 20px 60px;
}

.goods-item {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goods-btn {
    display: flex;
    align-items: center;
}

.goods-num {
    margin: 0 8px;
}

.goods-btn .iconfont {
    font-size: 18px;
    cursor: pointer;
}

.goods-btn .iconfont:active {
    opacity: 0.5;
}

.goods-item.choose .goods-sub,
.goods-item.choose .goods-num {
    display: flex;
}

.goods-sub {
    display: none;
}

.goods-num {
    display: none;
}

.goods-add {
    color: #ffbd27;
}

.footer-cart {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #313131;
    color: #f1f1f1;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}
.footer-cart.active {
    background-color: #ffbd27;
}

.footer-cart.active .footer-cart-count {
    display: flex;
}

.footer-cart-count {
    position: absolute;
    top: -2px;
    right: -5px;
    padding: 0 0.4rem;
    height: 1rem;
    border-radius: 1rem;
    background-color: #ff1111;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}